<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <!--
    * [LupMisNotAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-02-15 18:29:17;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">

            <form class="layui-form" action="">
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color: red"> * </i>数据表名：</label>
                        <div class="layui-input-block">
                            <select name="table_name" lay-verify="required">
                                <option value="">请选择数据表</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color: red"> * </i>字段名称：</label>
                        <div class="layui-input-block">
                            <input type="hidden" name="old_field_name">
                            <input type="text" name="field_name" lay-verify="required" oninput="this.value=this.value.replace(/[\u4e00-\u9fa5]/ig,'')" placeholder="字段名称" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color: red"> * </i>字段说明(备注)：</label>
                        <div class="layui-input-block">
                            <input type="text" name="field_remarks" lay-verify="required" placeholder="字段说明" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="color:#009688"><i style="color: red"> * </i>字段数据类型：</label>
                        <div class="layui-input-block">
                            <select name="field_type" lay-verify="required" lay-filter="field_type">
                                <option value="varchar">varchar</option>
                                <option value="char">char</option>
                                <option value="int">int</option>
                                <option value="bigint">bigint</option>
                                <option value="tinyint">tinyint</option>
                                <option value="decimal">decimal</option>
                                <option value="text">text</option>
                                <option value="longtext">longtext</option>
                                <option value="date">date</option>
                                <option value="datetime">datetime</option>
                                <option value="time">time</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="color:#009688"><i style="color: red"> * </i>字段长度(field)：</label>
                        <div class="layui-input-block">
                            <input type="text" name="field_len" lay-verify="required" value="50" placeholder="请输入长度" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="color:#009688">字段默认值(field)：</label>
                        <div class="layui-input-block">
                            <input type="text" name="field_default_value" placeholder="请输入字段默认值" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color: red"> * </i>输入类型：</label>
                        <div class="layui-input-block">
                            <select name="input_type" lay-verify="required" lay-filter="input_type">            
                                <option value="">请输入类型</option>
                                <option value="input">单行文本 [input]</option>
                                <option value="textarea">多行文本[textarea]</option>
                                <option value="textEditor">富文本编辑器</option>
                                <option value="select">下拉选择（原生option）[select]</option>
                                <option value="xmSelectNoPage">下拉单选[xmSelectNoPage]  无分页</option>
                                <option value="xmMultiSelectNoPage">下拉多选[xmMultiSelectNoPage]  无分页</option>
                                <option value="xmSelect">下拉单选[xmSelect] 有分页</option>        
                                <option value="xmMultiSelect">下拉多选[xmMultiSelect] 有分页 </option>
                                <option value="radio">单选[radio]</option>
                                <option value="checkbox">多选[checkbox]</option>
                                <option value="singleFile">单附件</option>
                                <option value="multiFile">多附件</option>
                                <option value="singleFileRemarks">单附件[带描述]</option>
                                <option value="multiFileRemarks">多附件[带描述]</option>
                                <option value="sku">sku #TODO</option>

                            </select>
                        </div>
                    </div>
                </div>



                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据校验类型：</label>
                        <div class="layui-input-block">
                            <select name="data_check_type" lay-verify="required" lay-search>            
                                <option value="none">无[string]</option>
                                <option value="ymd">日期[yyyy-mm-dd]</option>
                                <option value="ymdhis">日期时间[yyyy-mm-dd HH:ii:ss]</option>
                                <option value="his">纯时间[HH:ii:ss]</option>
                                <option value="time">时间戳[秒]</option>
                                <option value="timeMs">时间戳[毫秒]</option>
                                <option value="tel">手机号码[139xxxxxxxx]</option>
                                <option value="email">邮箱[xx@xx.xx]</option>
                                <option value="http">网址[http://或https://]</option>
                                <option value="int">整数[0-9]</option>
                                <option value="float">浮点[小数点]</option>
                                <option value="money">金额[两位小数]</option>
                                <option value="idCard">身份证[15位或18位身份证]</option>
                                <option value="password">密码[md5加密]</option>
                                <!-- <option value="encrypt">数据加密</option> -->
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据来源：</label>
                        <div class="layui-input-block">
                            <select name="data_src_type" lay-verify="required" lay-filter="data_src_type">
                                <option value="none">无</option>
                                <option value="dict">数据字典</option>
                                <option value="db-table">(数据表) db-table</option>
                                <option value="tree-parent">目录树</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">数据字典：</label>
                        <div class="layui-input-block">
                            <select name="dict_code" lay-search>
                                <option value="">请选择字典</option>

                            </select>
                        </div>
                    </div>
                </div>


                <div class="layui-col-lg12  layui-form-text">
                    <div class="layui-form-item">
                        <label class="layui-form-label">字段数据来源：<b onclick="formatJson($('textarea[name=custom_src]').val(),1)" style="color: red">【JSON校验】</b></label>
                        <div class="layui-input-block">
                            <textarea name="custom_src" style="height: 300px;" placeholder='请输入字段数据来源' autocomplete="off" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否必填：</label>
                        <div class="layui-input-block">
                            <select name="must" lay-verify="required" lay-search>            
                                <option value="1">必填</option>
                                <option value="-1">选填</option>
                            </select>
                        </div>
                    </div>
                </div>


                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">列宽：</label>
                        <div class="layui-input-block">
                            <input type="text" name="cols_width" lay-verify="number" placeholder="请输入列宽 0代表自动分配" autocomplete="off" value="0" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">列表双击编辑：</label>
                        <div class="layui-input-block">
                            <select name="list_edit" lay-verify="required" lay-search>            
                                <option value="1">可双击编辑</option>
                                <option value="-1" selected>不可双击编辑</option>
                            </select>
                        </div>
                    </div>
                </div>



                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">列表显示：</label>
                        <div class="layui-input-block">
                            <select name="list_show" lay-verify="required" lay-search>            
                                <option value="1">显示</option>
                                <option value="-1">隐藏</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">检索条件：</label>
                        <div class="layui-input-block">
                            <select name="search_condition" lay-verify="required" lay-search>
                                <option value="none">无[不检索]</option>
                                <option value="equals">等于</option>
                                <option value="like">LIKE '%key%'</option>
                                <option value="likeLeft">LIKE '%key'</option>
                                <option value="likeRight">LIKE 'key%'</option>
                                <option value="between">区间</option>
                                <option value=">="> >= </option>
                                <option value="<="> <= </option>
                                <option value="find_in_set">find_in_set</option>
                            </select>
                        </div>
                    </div>
                </div>


                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否允许替换路径</label>
                        <div class="layui-input-block">
                            <select name="is_allow_replace" lay-verify="required" lay-search>            
                                <option value="1">允许</option>
                                <option value="-1" selected>禁止</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg12  layui-form-text">
                    <div class="layui-form-item">
                        <label class="layui-form-label">字段描述</label>
                        <div class="layui-input-block">
                            <textarea name="remarks" style="height: 100px;" placeholder='请输入字段字段描述' autocomplete="off" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>

                <div class="layui-col-lg6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">排序：</label>
                        <div class="layui-input-block">
                            <input type="text" name="sort" value="255" lay-verify="required|number" placeholder="请输入排序" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="form-submit">立即提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <script src="../../../js/run.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">
        var webpath = "./script/add.js?v=" + static_version;
        document.write('<scr' + 'ipt src="' + webpath + '"></scr' + 'ipt>');
    </script>
</body>

</html>